<?php
//+-----------------------------------------------------------
//| 人生是荒芜的旅行，冷暖自知，苦乐在心
//+-----------------------------------------------------------
//| Author:Janmas <janmas@126.com>
//+-----------------------------------------------------------
//| 
//+-----------------------------------------------------------


namespace app\common\exception;


use Throwable;

/**
 * 后台异常基类
 * @package app\common\exception
 */
class AdminException extends BaseException
{
    protected $url;

    protected $data;

    protected $header;

    public function __construct ( $message = "" , $code = 0, $url=null,$data=[],$header=[] )
    {
        $this->url = $url;
        $this->data = $data;
        parent::__construct($message , $code );
    }

    public function getUrl(){
        return $this->url;
    }

    public function getData(){
        return $this->data;
    }


    public function getHeader(){
        return $this->header;
    }
}